package utils

import redis.clients.jedis.{Jedis, JedisPool}

object JedisPools {
  private lazy val pool = new JedisPool("localhost",6379)
  def getJedis(index:Int=0)={
    val jedis: Jedis = pool.getResource
    jedis.select(index)
    jedis
  }
}
